message(STATUS "02_ps - ${CMAKE_CURRENT_SOURCE_DIR}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall")

add_executable(publisher publisher.cpp redis_publisher.cpp)
target_link_libraries(publisher PRIVATE hiredis event pthread)

add_executable(subscriber subscriber.cpp redis_subscriber.cpp)
target_link_libraries(subscriber PRIVATE hiredis event pthread)